from mako import runtime, filters, cache
UNDEFINED = runtime.UNDEFINED
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 5
_modified_time = 1253526141.672461
_template_filename='/home/sp4rc/Documents/Studium/Semesterarbeit/workspace/webCA/src/webca/webca/templates/certs.mako'
_template_uri='certs.mako'
_template_cache=cache.Cache(__name__, _modified_time)
_source_encoding='utf-8'
from webhelpers.html import escape
_exports = ['header']


def _mako_get_namespace(context, name):
    try:
        return context.namespaces[(__name__, name)]
    except KeyError:
        _mako_generate_namespaces(context)
        return context.namespaces[(__name__, name)]
def _mako_generate_namespaces(context):
    pass
def _mako_inherit(template, context):
    _mako_generate_namespaces(context)
    return runtime._inherit_from(context, '/base.mako', _template_uri)
def render_body(context,**pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        c = context.get('c', UNDEFINED)
        enumerate = context.get('enumerate', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(u'')
        # SOURCE LINE 2
        __M_writer(u' \n\n<form name="certs" method="POST" action="/admin/certs">\n\t\tCertificate(s):<br>\n\n\t\t<br>\n')
        # SOURCE LINE 8
        for c.i, c.cert in enumerate(c.cert_list):
            # SOURCE LINE 9
            __M_writer(u'\t\t\t<input name="')
            __M_writer(escape(c.i))
            __M_writer(u'" type="checkbox"> ')
            __M_writer(escape(c.cert))
            __M_writer(u'<br>\n')
        # SOURCE LINE 11
        __M_writer(u'\t\t<br>\n\n\t\t<button value="print_cert" name="submit">Print Certificate(s)</button> \n\t\t<button value="revoke_cert" name="submit">Revoke Certificate(s)</button>\n\t\t<button value="print_cert_db" name="submit">Print Certificate DB</button>\n\t\t<br><br>\n</form>\nOutput:\n<b>\t\t\n<PRE>\n')
        # SOURCE LINE 21
        __M_writer(escape(c.stdout_value))
        __M_writer(u' \n</PRE>\n</b>\t\t\t\n')
        return ''
    finally:
        context.caller_stack._pop_frame()


def render_header(context):
    context.caller_stack._push_frame()
    try:
        c = context.get('c', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 2
        __M_writer(escape(c.title))
        return ''
    finally:
        context.caller_stack._pop_frame()


